package com.xbding.api;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@Controller
public class PhotoThumb {

    @GetMapping("/api/list/{id}")
   // @RequestMapping(value="/api/list/{id}", method = RequestMethod.GET)
    @ResponseBody
    public String list(@PathVariable("id")  String id){
        return "{\"msg\":\"hello\",\"id\":" + id +"}";
    }
    @GetMapping("/hello")
    public String hello(Map<String,Object> map){
        map.put("MSG", "from PhotoThumb ");
        return "helloWorld";
    }
}